package demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:子类方法中访问父类的成员方法
 * User: 86183
 */


public class B extends A{

    public void fun1(){
        System.out.println("子类的fun1成员方法");
    }
    public void fun2(int a){
        System.out.println("子类的带有参数的fun2成员方法");
    }
    public void fun3(){
        System.out.println("子类的fun3成员方法");
    }
    public void fun4(){
        fun1();
        fun2(10);
        fun2();
        fun3();
    }
}



